/*
** manage_cmd.c for  in /home/faye_m//zappy-2011/new_server/src
** 
** Made by mouhamed faye
** Login   <faye_m@epitech.net>
** 
** Started on  Mon Jul  4 17:54:05 2011 mouhamed faye
** Last update Sun Jul 10 22:19:04 2011 vincent ricard
*/
#include <string.h>
#include <stdio.h>
#include <strings.h>
#include <stdlib.h>
#include "types.h"
#include "parser.h"

void    manage_cmd(T_env *e, int socket, char *buf, t_server_params *p)
{
  char  *tmp;
  tmp = malloc(sizeof(*tmp));
  tmp = rindex(buf, '\n');
  if (tmp != NULL)
    {
      tmp[0] = '\0';
    }
  printf ("%d ",  get_time());
  printf ("Received MSG from %d : \"%s\"\n", e->i, buf);
  cmd_graph(e, socket, p);
}
